<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <ul class="nav nav-tabs" data-field="status">
            <li class="active"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li>
            {foreach name="statusList" item="vo"}
            <li><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li>
            {/foreach}
        </ul>
    </div>

    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div id="one" class="tab-pane fade active in">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        {:build_toolbar('refresh')}
                        <a href="javascript:" class="btn btn-success btn-export {:$auth->check('yungift/gift/order/export')?'':'hide'}" title="{:__('Export')}" id="btn-export-file"><i class="fa fa-download"></i> {:__('Export')}</a>
                        <a href="javascript:" class="btn btn-danger btn-import {:$auth->check('yungift/gift/order/import')?'':'hide'}" title="{:__('Import')}" id="btn-import-file" data-url="ajax/upload" data-mimetype="csv,xls,xlsx" data-multiple="false"><i class="fa fa-upload"></i> {:__('导入发货')}</a>
                        <a class="btn btn-success btn-dialog {:$auth->check('yungift/import_log')?'':'hide'}"  href="yungift/import_log?scene=gift_deploy" data-area="[&quot;90%&quot;,&quot;90%&quot;]" title="{:__('导入日志')}"><i class="fa fa-tint"></i> {:__('导入日志')}</a>
                        <a href="/assets/addons/yungift/file/新的批量导入发货的模板.xlsx" target="_blank" title="{:__('下载发货模板')}">{:__('下载发货模板')}</a>
                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>

<script id="type_model_tpl" type="text/html">
    <div class="row">
        <div class="col-xs-12">
            <div class="form-inline" data-toggle="cxselect" data-selects="type,model">
                <select class="type form-control" name="type" title="" data-url="yungift/gift/order/typeModel?group=type"></select>
                <select class="model form-control" name="model_id" title="" data-url="yungift/gift/order/typeModel?group=model" data-query-name="source"></select>
                <input type="hidden" class="operate" data-name="type" value="=" />
                <input type="hidden" class="operate" data-name="model_id" value="=" />
            </div>
        </div>
    </div>
</script>
